﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="LinesView.aspx.cs" Inherits="CityNavigation.LineView" %>
<asp:content id="HeaderContent" runat="server" contentplaceholderid="HeadContent">
</asp:content>
<asp:content id="BodyContent" runat="server" contentplaceholderid="MainContent">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
    CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333" 
    GridLines="None">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:BoundField DataField="LineName" HeaderText="线路名" 
                SortExpression="LineName" />
            <asp:BoundField DataField="FirstStation" HeaderText="起点站" 
                SortExpression="FirstStation" />
            <asp:BoundField DataField="LastStation" HeaderText="终点站" 
                SortExpression="LastStation" />
            <asp:BoundField DataField="FirstBeginTime" HeaderText="起点站首班时间" 
                SortExpression="FirstBeginTime" />
            <asp:BoundField DataField="FirstEndTime" HeaderText="起点站末班时间" 
                SortExpression="FirstEndTime" />
            <asp:BoundField DataField="LastBeginTime" HeaderText="终点站首班时间" 
                SortExpression="LastBeginTime" />
            <asp:BoundField DataField="LastEndTime" HeaderText="终点站末班时间" 
                SortExpression="LastEndTime" />
            <asp:BoundField DataField="AddTime" HeaderText="线路更新时间" 
                SortExpression="AddTime" />
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:CityNavigationConnectionString %>" 
    SelectCommand="SELECT [LineName], [FirstStation], [LastStation], [FirstBeginTime], [FirstEndTime], [LastBeginTime], [LastEndTime], [AddTime] FROM [BusLine]">
</asp:SqlDataSource>
</asp:content>

